
#ifndef _BSP_DTU_H_JDLFJSLFJSDKLF284820423
#define _BSP_DTU_H_JDLFJSLFJSDKLF284820423


#include "stm32l4xx.h"

#include "..\bsp.h"
#include "..\bsp_modbus.h"



#define UART_DTU					USART3
#define UART_DTU_IRQn				USART3_IRQn
#define UART_DTU_IRQHandler 		USART3_IRQHandler

extern UART_CFG2 uart_to_dtu_cfg;
extern RECV_INFO modbus_recv_info_dtu;


void bsp_uart_dtu_init(uint32_t baud, const char* fmt);


void send_pak_dtu(uint8_t* p, uint32_t cnt);
	
#endif


